<?php
class AttributeAction extends ComAction{
   public function Index(){   	 
   	 $this->attr=M('attr')->select();
     $this->display();
   }  
   public function AddAttr(){
     $this->display();
   }  
   public function AddAttrRun(){  	
    if(M('attr')->add($_POST)){
    	$this->success('保存成功');
    }else{
       $this->error('保存失败');
    }
   	
   }
}